String str = "India"; System.out.println("last char = " + str.charAt(str.length() - 1));
let str = "12345.00"; str = str.substring(0, str.length - 1);
str = str.substring(0, str.length() - 1);